package com.dcshop.demo.contract;

/**
 * 合约配置
 */
public class ContractUtils {

    public static final String QUERY_PRODUCT = "QueryProduct";
    public static final int GASLIMIT = 20000;
    public static final int GASPRICE = 0;
    public static final boolean PRE_EXEC = false;
    public static final String ADD_PRODUCT = "AddProduct";
    public static final String TRANSFER_PRODUCT = "TransferProduct";
    //smartx 部署后，产生的合约地址
    public static String CONTRACT_ADDRESS = "37e42028c1488de3c9a274c4563de7c9550d2472";
    //smartx 部署后，产生的合约abi文件
    public static String ABI = "{\n" +
            "\t\"hash\": \"37e42028c1488de3c9a274c4563de7c9550d2472\",\n" +
            "\t\"entrypoint\": \"Main\",\n" +
            "\t\"functions\": [{\n" +
            "\t\t\"name\": \"QueryProduct\",\n" +
            "\t\t\"parameters\": [{\n" +
            "\t\t\t\"name\": \"domain\",\n" +
            "\t\t\t\"type\": \"String\"\n" +
            "\t\t}],\n" +
            "\t\t\"returntype\": \"String\"\n" +
            "\t}, {\n" +
            "\t\t\"name\": \"AddProduct\",\n" +
            "\t\t\"parameters\": [{\n" +
            "\t\t\t\"name\": \"domain\",\n" +
            "\t\t\t\"type\": \"String\"\n" +
            "\t\t}, {\n" +
            "\t\t\t\"name\": \"owner\",\n" +
            "\t\t\t\"type\": \"ByteArray\"\n" +
            "\t\t}],\n" +
            "\t\t\"returntype\": \"Boolean\"\n" +
            "\t}, {\n" +
            "\t\t\"name\": \"TransferProduct\",\n" +
            "\t\t\"parameters\": [{\n" +
            "\t\t\t\"name\": \"domain\",\n" +
            "\t\t\t\"type\": \"String\"\n" +
            "\t\t}, {\n" +
            "\t\t\t\"name\": \"to\",\n" +
            "\t\t\t\"type\": \"ByteArray\"\n" +
            "\t\t}],\n" +
            "\t\t\"returntype\": \"Boolean\"\n" +
            "\t}],\n" +
            "\t\"events\": []\n" +
            "}";

    private ContractUtils() {
    }

}
